package com.sth.wiki.mapper;

import com.sth.wiki.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sth.wiki.entity.CategoryExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 分类 Mapper 接口
 * </p>
 *
 * @author sth
 * @since 2023-11-08
 */
public interface CategoryMapper extends BaseMapper<Category> {
    long countByExample(CategoryExample example);

    int deleteByExample(CategoryExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    List<Category> selectByExample(CategoryExample example);

    Category selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByExample(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);
}
